//设置全部列表
export const classAll = ({dispatch} , list) => {
  dispatch('ALL_CLASS' , list);
};

//添加分类
export const addClass = ({dispatch} , data) => {
  dispatch('ADD_CLASS' , data);
};

//删除分类
export const delClass = ({dispatch} , index) => {
  dispatch('DEL_CLASS' , index);
}

//当前分类
export const curClass = ({dispatch} , index) => {
  dispatch('CUR_CLASS' , index);
}

//当前笔记
export const setCurNote = ({dispatch} , index) => {
  dispatch('CUR_NOTE' , index);
}

//编辑状态
export const editState = ({dispatch} , state) => {
  dispatch('EDITOR' , state);
}

//设置笔记列表
export const setNoteList = ({dispatch} , list) => {
  dispatch('SET_NOTE_LIST' , list);
}

//显示提示
export const showMsg = ({dispatch} , msg) => {
  dispatch('SHOW_MSG' , msg);
}

//显示提示
export const toggleV = ({dispatch} , state) => {
  dispatch('TOGGLE_V' , state);
}

//删除笔记
export const delNote = ({dispatch} , index) => {
  dispatch('DEL_NOTE' , index);
}
